public class Test {
    public static void fun() {
        int a = 10;

            if (a == 10) {
                throw new CloneNotSupportedException();
            }
    }
    public static void main(String[] args) {
     fun();
        try {
            fun();
        }catch (CloneNotSupportedException e) {
            e.printStackTrace();
            System.out.println("异常");
        }
}
